import request from '@/utils/request'
// import Qs from 'qs'

// 群组详情
export function fetchGroupDetail(id) {
  return request({
    method: 'post',
    url: '/group/groupDetail',
    params: { id }
  })
}

// 我的群组
export function fetchMyGroup(id) {
  return request({
    url: '/group/getMyGroup',
    method: 'post',
    params: { id }
  })
}

// 全部群组列表
export function fetchAllGroup(params) {
  return request({
    method: 'post',
    url: '/group/list',
    data: params
  })
}
